package edu.sctu.practice.class02.Wangpeng.Assign02;

/**
 * Created by wp on 2015/10/9.
 */
public class Circle {
    public double radius;
    public static int numOfObject = 0;
    public double area;

    public Circle(double radius) {
        this.radius = radius;
        numOfObject++;
    }

    public double getarea() {
        area = Math.PI * radius * radius;
        return area;
    }

    public static int totil() {
        return numOfObject;
    }


}


